/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entidades;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author luksCastro
 */
@Entity
@Table(name = "conceptoliquidacion")
@NamedQueries({
    @NamedQuery(name = "Conceptoliquidacion.findAll", query = "SELECT c FROM Conceptoliquidacion c")})
public class Conceptoliquidacion implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "idConceptoLiq")
    private Integer idConceptoLiq;
    @Column(name = "descripcion")
    private String descripcion;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "monto")
    private Float monto;
    @Column(name = "unidadCalculo")
    private String unidadCalculo;
    @Column(name = "aporte")
    private String aporte;
    @OneToMany(mappedBy = "idConcepto")
    private List<Linealiquidacion> linealiquidacionList;

    public Conceptoliquidacion() {
    }

    public Conceptoliquidacion(Integer idConceptoLiq) {
        this.idConceptoLiq = idConceptoLiq;
    }

    public Integer getIdConceptoLiq() {
        return idConceptoLiq;
    }

    public void setIdConceptoLiq(Integer idConceptoLiq) {
        this.idConceptoLiq = idConceptoLiq;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    public Float getMonto() {
        return monto;
    }

    public void setMonto(Float monto) {
        this.monto = monto;
    }

    public String getUnidadCalculo() {
        return unidadCalculo;
    }

    public void setUnidadCalculo(String unidadCalculo) {
        this.unidadCalculo = unidadCalculo;
    }

    public String getAporte() {
        return aporte;
    }

    public void setAporte(String aporte) {
        this.aporte = aporte;
    }

    public List<Linealiquidacion> getLinealiquidacionList() {
        return linealiquidacionList;
    }

    public void setLinealiquidacionList(List<Linealiquidacion> linealiquidacionList) {
        this.linealiquidacionList = linealiquidacionList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idConceptoLiq != null ? idConceptoLiq.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Conceptoliquidacion)) {
            return false;
        }
        Conceptoliquidacion other = (Conceptoliquidacion) object;
        if ((this.idConceptoLiq == null && other.idConceptoLiq != null) || (this.idConceptoLiq != null && !this.idConceptoLiq.equals(other.idConceptoLiq))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entidades.Conceptoliquidacion[ idConceptoLiq=" + idConceptoLiq + " ]";
    }
    
}
